#include <stdio.h>
//计算一个char字符数组的元素个数,及输出每个字符
int main()
{
  char ch[]="wo shi zhang ye";
  int all_length=sizeof(ch);
  int ch_length=sizeof(ch[0]);
  int length=all_length/ch_length;
  printf("字符数组的长度为%d\n",length);
  printf("===============================\n");
  printf("输出每个字符\n");
  for(int i=0;i<length;i++){
    printf("%c",ch[i]);
  }
  return 0;
}